<template>
  <!-- 1. 顶部通栏布局 -->
  <AppTopnav />
  <!-- 2.1 普通头部布局-->
  <AppHeader />
  <!-- 2.2 固定头部布局-->
  <AppHeaderSticky />
  <main class="container">
    <!-- 二级路由 -->
    <RouterView></RouterView>
  </main>
  <AppFooter />
</template>

<script>
import AppTopnav from '@/components/app-topnav.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import { useStore } from 'vuex'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
export default {
  components: { AppTopnav, AppHeader, AppFooter, AppHeaderSticky },
  name: 'xtx-layout',
  setup() {
    const store = useStore()
    store.dispatch('category/findList')
  }
}
</script>

<style scoped lang="less">
.app-body {
  min-height: 600px;
}
</style>
